using System;
using System.Collections.Generic;
using System.Text;
using ALib;

namespace TradingLab.Data
{
    [Serializable]
    public class PropertyData:List<string>
    {
        public static double[] StringToDoubleArray(string record)
        {
            GoodValue.Assert(record != null);

            string[] dataStrings = record.Split(new char[] { ',' });

            GoodValue.Assert(dataStrings.Length > 0);

            double[] result = new double[dataStrings.Length];
            for (int i = 0; i < dataStrings.Length; i++)
            {
                result[i] = double.Parse(dataStrings[i]);
            }
            return result;
        }
    }
}